<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>设备</title>
<link href="/theme/comm/simpl.css" type="text/css" rel="stylesheet"
	media="screen" />
<link href="/theme/comm/base.css" type="text/css" rel="stylesheet"
	media="screen" />
<link href="/theme/jquery/ui-lightness/jquery-ui-1.10.3.custom.min.css" type="text/css" rel="stylesheet"
	media="screen" />
<script src="/js/comm/jquery/jquery-2.0.1.min.js"></script>
<script src="/js/comm/jquery/jquery.ui.core.js"></script>
<script src="/js/comm/jquery/jquery.ui.datepicker.min.js"></script>
<script>
 $(function() {
   $( "#putawayDate" ).datepicker();
 });
 </script>
</head>
<body class="Margin">
	<jsp:include page="/content/comm/header.jsp"></jsp:include>
	<script type="text/javascript">
		document.all.GpsDeviceTab.className += "ActiveTab";
	</script>
	<div class="PageBackground">
		<div style="margin: 10px;">
			<span style="font-weight: bold;">表3之一 入库表（设备）</span>
		</div>
		<form action="/sheets/gps-device.do" method="post"
			enctype="multipart/form-data">
			<div>
				<table>
					<tr>
						<td>入库日期：</td>
						<td><s:textfield id="putawayDate" name="putawayDate"></s:textfield></td>
					</tr>
					<tr>
						<td>ID号：</td>
						<td><s:textfield name="deviceID"></s:textfield></td>
					</tr>
					<tr>
						<td>设备型号：</td>
						<td><s:textfield name="deviceModelNum"></s:textfield></td>
					</tr>
					<tr>
						<td></td>
						<td><s:submit id="searchBtn" name="search" method="search"
								value="Search"></s:submit></td>
					</tr>
				</table>
			</div>
			<div>
				<s:file id="spreadSheet" name="spreadSheet"></s:file>
				<s:submit id="uploadBtn" name="Upload" method="uploadSheet"
					value="Upload"></s:submit>
			</div>
		</form>
		<s:property value="outMessage" />
		<s:if test="outMessage!=''">
			<div>
				<table border="1">
					<tr>
						<s:iterator value="colHeaderList" var="chItem" status="st">
							<td
								<s:if test="!#chItem.isMatch">style="background-color:red;"</s:if>><s:property
									value="#chItem.columnName" /></td>
						</s:iterator>
					</tr>
				</table>
			</div>
		</s:if>
		<s:else>
			<div>
				<table border="1">
					<tr>
						<td>入库日期</td>
						<td>设备型号</td>
						<td>ID号</td>
						<td>设备提供厂商</td>
						<td>厂商联系人</td>
						<td>厂商联系方式</td>
						<td>经办人</td>
						<td>备注</td>
					</tr>
					<s:iterator value="GpsDeviceList" var="gdItem" status="st">
						<tr>
							<td><s:date name="#gdItem.putawayDate" format="dd/MM/yyyy" /></td>
							<td><s:property value="#gdItem.deviceModelNum" /></td>
							<td><s:property value="#gdItem.deviceID" /></td>
							<td><s:property value="#gdItem.vendor" /></td>
							<td><s:property value="#gdItem.vendorContact" /></td>
							<td><s:property value="#gdItem.vendorContactPhone" /></td>
							<td><s:property value="#gdItem.agent" /></td>
							<td><s:property value="#gdItem.remarks" /></td>
						</tr>
					</s:iterator>
				</table>
			</div>
		</s:else>
	</div>
</body>
</html>
